package com.neusoft.databus.agent.pool.snmp;

import org.apache.commons.pool2.KeyedPooledObjectFactory;
import org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig;
import org.springframework.stereotype.Component;

import com.neusoft.databus.common.connection.SnmpConnection;
import com.neusoft.databus.common.pool.AbstractPool;

/**
 * snmp连接池
 *
 * @author naxiang
 */
@Component
public class SnmpPool extends AbstractPool<SnmpConnection, SnmpWrapper> {

    @Override
    public String getName() {
        return "SNMP连接池";
    }

    @SuppressWarnings("rawtypes")
    public SnmpPool(KeyedPooledObjectFactory<SnmpConnection, SnmpWrapper> factory,
            GenericKeyedObjectPoolConfig snmpPoolConfig) {
        super(factory, snmpPoolConfig);
    }

}
